/*
 * @Descripttion:调用后端商品图片接口的函数
 */

import axios from 'axios'
import getImgPath from '@/util/randomImg'

//读取商品概述的图片
const showInfoImgs = id =>
  // axios.get(`/api/v1/info-imgs/${id}`).then(res => res.data)
  getImgPath()

//读取商品参数的图片
const showParamImgs = id =>
  // axios.get(`/api/v1/param-imgs/${id}`).then(res => res.data)
  getImgPath()
  
const getImg = ()=> getImgPath()

export { showInfoImgs, showParamImgs, getImg }
